<script>
	import {
		useUserStore
	} from '@/store/index.js'
	export default {
		onLaunch: function() {
			console.log('App Launch')
			const now_role = uni.getStorageSync('userInfo')?.now_role || 1
			useUserStore().setRole(now_role)
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "./style/index.scss";
	@import "@/uni_modules/uview-plus/index.scss";
</style>